package com.aishua.fire.jpa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.aishua.fire.common.anno.EntityDesc;

import lombok.Data;

@EntityDesc(desc="人员通讯录表")
@Data
@Entity
public class PersonContact {

	@Id
	@Column(nullable = true,columnDefinition="bigint COMMENT '表主id,自动生成'")
	private long id;
	
	@Column(nullable = false,columnDefinition="varchar(64) COMMENT '姓名'")
	private String name;
	
	@Column(nullable = false,columnDefinition="varchar(64) COMMENT '联系方式'")
	private String contactType;
	
	@Column(nullable = false,columnDefinition="varchar(64) COMMENT '联系方式信息'")
	private String contactInfo;
	
	@Column(nullable = false,columnDefinition="bigint COMMENT '所属部门'")
	private long departmentId;//所属部门
	
	@Column(nullable = false,columnDefinition="varchar(64) COMMENT '职务'")
	private String job;
	
	@Column(nullable = true,columnDefinition="varchar(4) COMMENT '性别'")
	private String gender;
	
	@Column(nullable = true,columnDefinition="varchar(64) COMMENT '出生年月'")
	private String brithDate;
	
	@Column(nullable = false,columnDefinition="varchar(64) COMMENT '职责'")
	private String duty;
	 
}
